package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;
import com.tanhua.model.vo.PageResult;

import java.util.Map;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    PageResult findMyLike(Long userId, Integer page, Integer pagesize);

    PageResult findLikeMe(Long userId, Integer page, Integer pagesize);

    PageResult findOtherLike(Long userId, Integer page, Integer pagesize);

    UserLike findOne(Long userId, Long likeUserId);

    void removeLike(Long userId, Long uid);

    //Map count(Long userId);

    //统计互相喜欢
    Integer eachLoveCount(Long userId);

    //统计喜欢
    Integer loveCount(Long userId);

    //统计粉丝
    Integer fanCount(Long userId);
}
